import {
	axios
} from "./axios.js";

// 获取屿粉-露营的动态列表
export const getCampingDynamicList = (params) => {
	return axios({
		url: '/dynamic/getCampingDynamicList',
		method: 'get',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}

// 获取分享-附近的动态列表
export const getNearList = (params) => {
	return axios({
		url: '/dynamic/getNearList',
		method: 'get',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}


// 获取屿粉-美食的动态列表
export const getFoodsList = (params) => {
	return axios({
		url: '/dynamic/getFoodsList',
		method: 'get',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}


// 获取屿粉-民宿的动态列表
export const getHomestayList = (params) => {
	return axios({
		url: '/dynamic/getHomestayList',
		method: 'get',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}


// 获取屿粉-活动的动态列表
export const getActivitiesList = (params) => {
	return axios({
		url: '/dynamic/getActivitiesList',
		method: 'get',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}

// 点击某一个笔记根据笔记aid获取笔记详细信息
export const getNoteDetailInfos = (params) => {
	return axios({
		url: '/dynamic/getNoteDetailInfos',
		method: 'get',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}


// 点赞或者取消点赞评论
export const thumbsUpThisComment = (params) => {
	return axios({
		url: '/dynamic/thumbsUpThisComment',
		method: 'post',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}


// 点赞或者取消点赞这个笔记
export const thumbsUpNote = (params) => {
	return axios({
		url: '/dynamic/thumbsUpNote',
		method: 'post',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}

// 收藏或者取消收藏这个笔记
export const collectNote = (params) => {
	return axios({
		url: '/dynamic/collectNote',
		method: 'post',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}


// 点击关注或者取消关注作者
export const guanzhuAuthor = (params) => {
	return axios({
		url: '/dynamic/guanzhuAuthor',
		method: 'post',
		params: params,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}



// 发送评论
export const sendCommentContent = (data) => {
	return axios({
		url: '/dynamic/sendCommentContent',
		method: 'post',
		data: data,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}



// 删除笔记
export const deleteDynamic = (data) => {
	return axios({
		url: '/dynamic/deleteDynamic',
		method: 'post',
		data: data,
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}